/*
 * @Author: youzi 17639310612@163.com
 * @Date: 2024-02-02 09:13:04
 * @LastEditors: youzi 17639310612@163.com
 * @LastEditTime: 2024-02-02 15:31:14
 * @FilePath: \vue-houtai\src\router\constantRoutes.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
 * @description 静态路由
 */
export const staticRoutes = [
	{
		path: '/login',
		name: 'login',
		meta: {
			isHide: true,
		},
		component: () => import('@/views/login/index.vue'),
	},
	{
		path: '/404',
		name: '404',
		meta: {
			isHide: true,
		},
		component: () => import('@/views/404/index.vue'),
	},
	{
		path: '/',
		name: 'LAYOUT',
		component: () => import('@/layout/index.vue'),
		redirect: '/index',
		meta: {
			name: '首页',
			icon: 'House',
		},
		children: [
			{
				path: '/index',
				name: 'index',
				component: () => import('@/views/home/index.vue'),
				meta: {
					name: '首页',
					icon: 'House',
					affix: true,
				},
			},
		],
	},
];

/**
 * @description 路由未找到
 */
export const notFoundRouter = {
	path: '/:pathMatch(.*)*',
	name: 'notFound',
	redirect: '404',
};
